#ifndef VENTANA_H
#define VENTANA_H

#include <algorithm>
#include <QtGui/QMainWindow>
#include<QFileDialog>
#include "kernels.h"
#include "rotation.h"
namespace Ui
{
    class VentanaClass;
}

class Ventana : public QMainWindow
{
    Q_OBJECT

public:
    int R[256];
    int G[256];
    int B[256];
    int gray[256];
    int maR,maG,maB,maGray;

    Ventana(QWidget *parent = 0);
    ~Ventana();
    void getHistogram();

private:
    Ui::VentanaClass *ui;
    Kernels *k;
    rotation *r;

private slots:
    void on_actionReset_Image_triggered();
    void on_actionGradient_triggered();
    void on_actionGradient_X_triggered();
    void on_actionGradient_Y_triggered();
    void on_actionMedium_Filter_triggered();
    void on_actionMax_Filter_triggered();
    void on_actionMin_Filter_triggered();
    void on_action4x_triggered();
    void on_action2x_triggered();
    void on_action0_5x_triggered();
    void on_action0_25x_triggered();
    void on_action_Save_triggered();
    void on_actionRotate_triggered();
    void on_actionVertical_Flip_triggered();
    void on_actionFlip_triggered();
    void on_actionCMYK_RGB_triggered();
    void on_actionConvolution_triggered();
    void on_actionGrey_Scale_triggered();
    void on_ApplyContrast_clicked();
    void on_ApplyThreshold_clicked();
    void on_actionFilter_Mask_triggered();
    void on_actionSubstract_Image_triggered();
    void on_actionAdd_Image_triggered();
    void on_ApplyGamma_clicked();
    void on_ApplyBrightness_clicked();
    void on_ApplyEqualize_clicked();
    void on_actionOpen_triggered();
    void on_actionExit_triggered();
    void on_ApplyNegative_clicked();
};

#endif // VENTANA_H
